package com.csg.ses.controller;

import com.csg.ses.entity.ses.YxzjkZwCsxxEntity;
import com.csg.ses.vo.common.Result;
import com.csg.ses.common.annotation.LoginToken;
import com.csg.ses.vo.common.ResultStatus;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.csg.ses.vo.common.IdListVo;
import java.util.List;
import com.csg.ses.service.ses.YxzjkZwCsxxService;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 账务催收信息（营销中间库）
 * @author wangjun
 * @date 2020-11-18 15:53:40
 */
@RestController
@RequestMapping("/yxzjkZwCsxx")
@Api(tags = "账务催收信息（营销中间库）接口")
@ApiIgnore
public class YxzjkZwCsxxController {
    @Autowired
    private YxzjkZwCsxxService yxzjkZwCsxxService;

    /**
     * 账务催收信息（营销中间库）列表
     */
    @ApiOperation(value = "账务催收信息（营销中间库）列表")
    @ApiImplicitParams({
        @ApiImplicitParam(name = "yxzjkZwCsxx", value = "账务催收信息（营销中间库）", dataType = "YxzjkZwCsxxEntity", paramType = "body"),
        @ApiImplicitParam(name = "current", value = "当前页", required = true ,dataType = "Integer"),
        @ApiImplicitParam(name = "size", value = "每页记录数", required = true ,dataType = "Integer")
    })
    @GetMapping("/list")
    @LoginToken
    public Result<List<YxzjkZwCsxxEntity>> list(YxzjkZwCsxxEntity yxzjkZwCsxx, Long current, Long size) {
        return yxzjkZwCsxxService.retrieve(yxzjkZwCsxx, current, size);
    }
}